<HTML>
<HEAD>
    <meta charset="UTF-8">
    <title>TransitionSetBuilder.customTransition - transitionx</title>
    <link href="../../../style.css" rel="stylesheet">
</HEAD>
<BODY>
<a href="../../index.html">transitionx</a>&nbsp;/&nbsp;<a href="../index.html">in.arunkumarsampath.transitionx.transition.set</a>&nbsp;/&nbsp;<a
        href="index.html">TransitionSetBuilder</a>&nbsp;/&nbsp;<a href="./custom-transition.html">customTransition</a><br/>
<br/>
<h1>customTransition</h1>
<a name="in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$customTransition(kotlin.Function1((in.arunkumarsampath.transitionx.transition.TransitionBuilder((in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T)), kotlin.Unit)))"></a>
<code><span class="keyword">inline</span> <span class="keyword">fun </span><span
        class="symbol">&lt;</span><span class="keyword">reified</span>&nbsp;<span
        class="identifier">T</span>&nbsp;<span class="symbol">:</span>&nbsp;<a
        href="https://developer.android.com/reference/android/support/transition/Transition.html"><span
        class="identifier">Transition</span></a><span class="symbol">&gt;</span> <span
        class="identifier">customTransition</span><span class="symbol">(</span><span
        class="identifier"
        id="in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$customTransition(kotlin.Function1((in.arunkumarsampath.transitionx.transition.TransitionBuilder((in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T)), kotlin.Unit)))/transitionBuilder">transitionBuilder</span><span
        class="symbol">:</span>&nbsp;<a
        href="../../in.arunkumarsampath.transitionx.transition/-transition-builder/index.html"><span
        class="identifier">TransitionBuilder</span></a><span class="symbol">&lt;</span><a
        href="custom-transition.html#T"><span class="identifier">T</span></a><span class="symbol">&gt;</span><span
        class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span
        class="symbol">-&gt;</span>&nbsp;<a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;{}<span
        class="symbol">)</span><span class="symbol">: </span><a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a></code>
<p>Instantiates <a
        href="https://developer.android.com/reference/android/support/transition/Transition.html">Transition</a>
    of type <a href="custom-transition.html#T">T</a> and adds to this transition. The <a
            href="custom-transition.html#T">T</a> type must have a public
    no arg constructor for the instantiation to work.</p>
<p>If the custom transition cannot have a no arg public constructor then, you can instantiate the
    transition yourself and call <a href="./custom-transition.html">customTransition</a></p>
<h3>Exceptions</h3>
<p><a name="IllegalArgumentException"></a>
    <code>IllegalArgumentException</code> - if the type <a href="custom-transition.html#T">T</a>
    does not have a public no arg constructor.</p>
<p><strong>See Also</strong><br/>
<p><a href="./custom-transition.html">customTransition</a></p>
</p>
<a name="in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$customTransition(in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T, kotlin.Function1((in.arunkumarsampath.transitionx.transition.TransitionBuilder((in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T)), kotlin.Unit)))"></a>
<code><span class="keyword">inline</span> <span class="keyword">fun </span><span
        class="symbol">&lt;</span><span class="identifier">T</span>&nbsp;<span
        class="symbol">:</span>&nbsp;<a
        href="https://developer.android.com/reference/android/support/transition/Transition.html"><span
        class="identifier">Transition</span></a><span class="symbol">&gt;</span> <span
        class="identifier">customTransition</span><span class="symbol">(</span><span
        class="identifier"
        id="in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$customTransition(in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T, kotlin.Function1((in.arunkumarsampath.transitionx.transition.TransitionBuilder((in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T)), kotlin.Unit)))/transition">transition</span><span
        class="symbol">:</span>&nbsp;<a href="custom-transition.html#T"><span
        class="identifier">T</span></a><span class="symbol">, </span><span class="identifier"
                                                                           id="in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$customTransition(in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T, kotlin.Function1((in.arunkumarsampath.transitionx.transition.TransitionBuilder((in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T)), kotlin.Unit)))/transitionBuilder">transitionBuilder</span><span
        class="symbol">:</span>&nbsp;<a
        href="../../in.arunkumarsampath.transitionx.transition/-transition-builder/index.html"><span
        class="identifier">TransitionBuilder</span></a><span class="symbol">&lt;</span><a
        href="custom-transition.html#T"><span class="identifier">T</span></a><span class="symbol">&gt;</span><span
        class="symbol">.</span><span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span
        class="symbol">-&gt;</span>&nbsp;<a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;{}<span
        class="symbol">)</span><span class="symbol">: </span><a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a></code>
<p>Alternative to <a href="./custom-transition.html">customTransition</a> that takes an already
    instantiated <a
            href="custom-transition.html#in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$customTransition(in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T, kotlin.Function1((in.arunkumarsampath.transitionx.transition.TransitionBuilder((in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T)), kotlin.Unit)))/transition">transition</a>
    instance and
    allows additional configuration via the <a
            href="custom-transition.html#in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$customTransition(in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T, kotlin.Function1((in.arunkumarsampath.transitionx.transition.TransitionBuilder((in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder.customTransition.T)), kotlin.Unit)))/transitionBuilder">transitionBuilder</a>
    block.</p>
<p>This method is preferred for cases where <a href="custom-transition.html#T">T</a> transition does
    not have a public no-arg constructor</p>
</BODY>
</HTML>
